<form class="layui-form">
    <table class="layui-table">
        <thead>
        <tr>
            <th width="200px">订单号</th>
            <th>商品信息</th>
            <th>实付款</th>
            <th>支付方式</th>
            <th>订单状态</th>
            <th>下单时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>

        {foreach $list as $vo}
        <tr>
            <td>{$vo.id}-{$vo.order_no}</td>
            <td>
                {foreach $vo.items as $v}
                <div class="layui-inline">
                    <div class="layui-inline" style="margin-right: 10px">
                        <img src="{$v.image}" class="layui-view-img">
                    </div>
                    <div class="layui-inline">
                        <p class="layui-font-black">{$v.goods_name}</p>
                        <p class="layui-font-black">{$v.attr}</p>
                        <p>${$v.sell_price}</p>
                        <p>x{$v.buy_num}</p>
                    </div>
                </div>
                {/foreach}
            </td>
            <td>{$vo.real_amount}</td>
            <td>{$vo.payment_type}</td>
            <td>{$vo.status}</td>
            <td>{$vo.create_time|date='Y-m-d H:i:s'}</td>
            <td>
                <a class="layui-btn layui-btn-sm" href="{:url('/store/order/read',['order_id' => $vo.id])}">订单详情</a>
                <a class="layui-btn layui-btn-danger layui-btn-sm refund" data-id="{$vo.id}">退款</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</form>
{$list|raw}